//
//  LBRUserModule.m
//  LBReact
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "LBRUserModule.h"
#import "LBReactBridge+Native.h"

@implementation LBRUserModule

RCT_EXPORT_MODULE(user)

RCT_EXPORT_METHOD(fetchUser:(RCTResponseSenderBlock)callBack){
    if ([[LBReactBridge manager].delegate respondsToSelector:@selector(userInfo)]) {
        callBack(@[[[LBReactBridge manager].delegate userInfo]?:@{}]);
    }else {
        callBack(@[@{}]);
    }
}

@end
